package com.myschool.server.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * This class is intended to store the Postings by Parents/teachers.. This is
 * like public place for postings..
 */

@Entity
@Table(name = "postings")
public class Postings extends BaseEntity {

	@Column(length = 1000, nullable = false)
	private String message;

	@Column(length = 25, nullable = false)
	private String fromUser;
	@Column(length = 25, nullable = false)
	private String toUser;

	@Column(name = "private")
	private Boolean isPrivate;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getFromUser() {
		return fromUser;
	}

	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}

	public String getToUser() {
		return toUser;
	}

	public void setToUser(String toUser) {
		this.toUser = toUser;
	}

	public Boolean getIsPrivate() {
		return isPrivate;
	}

	public void setIsPrivate(Boolean isPrivate) {
		this.isPrivate = isPrivate;
	}

}
